package com.cinc.ebc.mm.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.ebc.mm.entity.MmStockInOut;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cinc.ebc.mm.model.MmRptStockInOutStatModel;
import com.cinc.ebc.mm.model.MmStockInOutDetailModel;
import com.cinc.ebc.mm.model.MmStockInOutModel;
import com.cinc.ebc.mm.vo.MmRptStockInOutStatPage;
import com.cinc.ebc.mm.vo.MmStockInOutDetailPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 库存单据
 * @Author: jeecg-boot
 * @Date:   2022-04-05
 * @Version: V1.0
 */
public interface MmStockInOutMapper extends BaseMapper<MmStockInOut> {

    int selectCount(@Param("model") MmStockInOutModel model);

    List<MmRptStockInOutStatModel> selectRptStockInOutStatList(Page<MmRptStockInOutStatModel> page, @Param("paramModel")MmRptStockInOutStatPage mmRptStockInOutStatPage);

    List<MmStockInOutDetailModel> selectRptList(Page<MmStockInOutDetailModel> page, @Param("paramModel")MmStockInOutDetailPage mmStockInOutDetailPage);
}
